<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ page session="false" isELIgnored="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>房间体系_明星列表页面</title>
<link type="text/css" rel="stylesheet" href="css/style.css" />
<link type="text/css" rel="stylesheet" href="/css/removefocus.css" />
<script type="text/javascript" src="/js/jquery.js" charset="utf-8"></script>
<script type="text/javascript" src="/js/jquery-1.7.1.min.js" charset="utf-8"></script>
<!--[if IE 6]>
<script type="text/javascript" language="javascript" src="/js/DD_belatedPNG.js"></script>
<script type="text/javascript">
       DD_belatedPNG.fix('img,.ltImg-txt3,.ltImg-txtB3,.ltImg-txt4,.Hleft,.listnav li a:hover,.Hrtopbg,.Hbotbg,.footer,.mainright,a.browse,#fzgc #a,#ztgs #j,.Scrollbar-Handle')
</script>
<![endif]-->
<script type="text/javascript" src="/js/json2.js" charset="utf-8"></script>
<script type="text/javascript" language="javascript" src="<c:url value="/js/room/popWin.js"/>"></script>
</head>
<body>
	<div class="wrap">
    	<div class="hdCont">
        	<h2><span>房间活动</span><a href="/room!index.jspa?roomid=${roomid}">返回主页>></a></h2>
            <ul class="cont">
	                <input type="hidden" id="room_id" value="${roomid}" />
	                <input type="hidden" id="oemid" value="${oemid}" />
            	<c:forEach items="${activeInfo}" var="his" varStatus="vs">
	                <input type="hidden" id="ac_photo_name_${his.id}" value="${his.photo_name}">
	                <input type="hidden" id="ac_start_time_${his.id}" value="${his.start_time}">
	                <input type="hidden" id="ac_end_time_${his.id}" value="${his.end_time}">
	                <input type="hidden" id="ac_photoid_${his.id}" value="${his.photoid}">
	                <input type="hidden" id="ac_centerflag_${his.id}" value="${his.center_flag}">
                <li class="li" id="li_${his.id}">
                    <a href="javascript:void(0);" class="ltImg-img" title="展开房间信息">
                  	<c:if test="${his.imgURL ne '' }">
                  		<img  src="${his.imgURL}" id="li_img_${his.id}" class="li_img"/>
					</c:if>
                  	<c:if test="${his.imgURL eq '' }">
                  		<img src="/images/active_small.jpg" id="li_img_${his.id}" class="li_img"/>
					</c:if>
                    </a>
                    <c:if test="${his.period==1 }">
                    <p class="ltImg-txt" id="p_txt1_${his.id}">正在进行</p> 
                    </c:if>                    
                    <c:if test="${his.period==4||his.period==0 }">
                    <!-- 尚未开始 -->
                    <p class="ltImg-txt" id="p_txt1_${his.id}">${his.start_time_str}</p> 
                    </c:if>                  
                    <c:if test="${his.period==3 }">
                    <p class="ltImg-txt" id="p_txt1_${his.id}">即将开始</p> 
                    </c:if>                  
                    <c:if test="${his.period==5 }">
                    <!-- 今日活动 -->
                    <p class="ltImg-txt" id="p_txt1_${his.id}">${his.start_time_str}</p> 
                    </c:if>                    
                    <c:if test="${his.period==2 }">
                    <p class="ltImg-txt" id="p_txt1_${his.id}">活动结束</p> 
                    </c:if>
                    <c:if test="${his.room_id!=roomid}">
                    	<p class="ltImg-txt2" id="p_z_${his.id}" title="转播自房间：${his.room_id}">【转】</p>
					</c:if>
					<%-- 
					<var id="bmImg_${his.id}"></var>
                    <c:if test="${his.joinerStat==0 }">
                    	<p class="ltImg-txt3" id="p_img1_${his.id}">123123</p>   
                    </c:if>  
					--%>   
                    <%--
                    <p class="ltImg-txt4">50000000券</p>
                    --%>            
                    <div class="ltImg-info">
                        <h3 style="table-layout:fixed; word-break:break-all;"><i></i><a href="javascript:void(0);" style="table-layout:fixed; word-break:break-all;">${his.active_subject}</a></h3>
                        
                          
                        <%-- 
                    	<c:if test="${his.period==0 || his.period>=3 }">
                        	<p class="time1" id="time_${his.id}" style="display:none;">${his.start_time_str}</p>
                        </c:if>
                    	<c:if test="${his.period==1 }">
                        	<p class="time1" id="time_${his.id}" style="display:none;">结束时间:${his.end_time_str}</p>
                        </c:if>
                        --%>
                        <input type="hidden" value="房间：${his.room_name }(${his.room_id})" id="hiddenRoomName_${his.id}"/>
                        <p class="time1"><var id="room_name_${his.id}">时长：${his.time_len}</var></p>
                        <p class="time1" id="time_${his.id}" style="display:none;">开始时间：${his.start_time_str}</p>
                        <p class="time1" id="time_len_${his.id}" style="display:none;">时长：${his.time_len}</p>
                        <%--
                       	<c:if test="${vs.count==1}">
                        	<p class="text1" id="li_conten_${his.id }">${his.active_content}</p>
                        </c:if>
                        <c:if test="${vs.count!=1}">
                        	<p id="li_conten_${his.id }">${his.active_content}</p>
                        </c:if>
                         --%>
                        <p class="lenCon" id="li_conten_${his.id }" onclick="$('#li_img_${his.id}').click();" style="cursor:pointer;word-break:break-all;">${his.active_content_len}</p>
                        </div>
                        <input type="hidden" id="input_conten_${his.id }" value="${his.active_content}"/>
                        <div class="butBox rtBut">
                        	<input type="hidden" id="starTimeLong_${his.id}" value="${his.start_time_long}" />
                        	<c:if test="${his.period==2 }">
                        		<a  id="preactiveA${his.id}" class="but2"  id="preactiveA${his.id}" href="javascript:void(0);">已结束</a>
                        	</c:if>
                        	<c:if test="${his.period==4 || his.period==5 }">
                        		<c:if test="${his.joinerStat==0 && userid>0}">
                        			<a  id="preactiveA${his.id}" class="but2"  id="preactiveA${his.id}" href="javascript:void(0);">已报名</a>
                        		</c:if>
                        		<c:if test="${his.joinerStat==1 }">
                        			<a  id="preactiveA${his.id}" class="but1"  id="preactiveA${his.id}" href="javascript:subJoiner(${his.id},${his.room_id });">报名</a>
                        		</c:if>
                            </c:if>       
                        	<c:if test="${his.period==3||his.period==1}">
                        	  	<a class="but3 intoroom RCFlag" title="${his.room_id}" href="javascript:void(0);" id="preactiveA${his.id}">
                            		入场
                            	</a>
                        	</c:if>
                            <p class="txt" id="joinAmount${his.id}">${his.join_amount}</p>
                            <a class="link1" href="javascript:void(0)" onclick="showPopWin(this,'shareActivitiePop',shareActivitie2Fun('${roomname}','${roomid }','${his.period }','${his.active_subject}','${his.join_amount}','${his.start_time }'),'sourceObjLeftBown');return false;"><i></i>分享</a><a class="link2" href="javascript:void(0);"  onclick="replyActive(${his.id},${ismaster},${roomid},${userid},${his.room_id});return false;"><i></i>转播</a>
                            <c:if test="${ismaster==1 and his.room_id==roomid}">
							<a class="link3" href="javascript:void(0)">[<span style="cursor:pointer;" onclick = "editActive(${his.id},${his.room_id});return false;">编辑</span>]</a>
                           	<a class="link4" href="javascript:void(0)">[<span style="cursor:pointer;" onclick="subdelActive(${his.id},${his.photoid});return false;">删除</span>]</a>
                           	</c:if>
                           	<c:if test="${ismaster==1 and his.room_id!=roomid}">
                           	<a class="link4" href="javascript:void(0)">[<span style="cursor:pointer;" onclick="zbDelActive(${his.id},${his.room_id},${roomid });return false;">删除</span>]</a>
                           	</c:if>
                        </div>
                        <p class="text-Box" id="bigContent_${his.id}" onclick="$('#li_img_${his.id}').click();" style="cursor:pointer;word-break:break-all;display:none;"></p>
                </li>
                </c:forEach>
            </ul>
            <input type="hidden" id="pageJson" value='${pageJson}'/>
            <input type="hidden" id="pageUrl" value="/room!activelist.jspa?roomid=${roomid}"/>
            <input type="hidden" id="pageClass" value="on"/>
            <div class="nbList2" style="width:100%;text-align:right;">
            	<script type="text/javascript" src="/js/room/page.js" charset="utf-8"></script>
            </div>
         </div>
    </div>
    
    
    
    <jsp:include page="../popDiv.jsp" />
   <!-- END -->
        
        
        

 	  <!-- 转播房间选择 -->
    <div class="bomb" style="height:220px;">
     	<div class="bombBox2" id="roomVoPop" style="display:none;z-index:99;position: absolute;height:220px;">
     		<h4>温馨提示<a class="close" href="javascript:void(0);" onclick="hidePopWin('roomVoPop');return false;"></a></h4>
         		<input type="hidden" id="roomVoListSize" value="0"/>
         	<ul class="bd3" style="overflow-y:scroll;height:100px;" id="zbUl">
         		<%-- 
         		<c:forEach items="${roomVoList}" var="vo" varStatus="vs">
               		<li><label><input type="checkbox" name = "des_room_id" value="${vo.roomId }"/>${vo.roomId }  ${vo.roomName }</label></li>
         		</c:forEach>
         		--%>             
             </ul>
             <ul class="bd3">
              <li><label><input type="checkbox" onclick="checkAll(this);"/>全选</label><a class="but1" href="javascript:void(0);" id="roomVoSubmit">确定</a></li>
             </ul>
         </div>
     </div>
 	<!-- END -->
</body>
</html>
<script type="text/javascript" language="javascript" src="/js/room/roomUtil.js"></script>
<script type="text/javascript" language="javascript" src="/js/room/ExpandUtil.js"></script>